package com.ourhours.message.enums;

/**
 * Description:ApiResponseCode.
 *
 * @author chi.chen
 * @version V1.0
 * @since 2018/3/29
 */
public enum ApiResponseCode {

    SUSCESS("0000", "成功"),
    ERROR("3301", "内部处理失败"),
    BUSINESS_ERROR("3302", "内部逻辑处理失败"),
    ARG_ERROR("3303","错误的入参"),
    CODE_ERROR("3304","验证码错误"),
    CODE_TIME_ERROR("3305","验证码超时"),
    COUNT_LIMIT_ERROR("3306","短信超过次数限制");

    private String code;
    private String message;

    ApiResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
